//
//  menuView.h
//  电商首页
//
//  Created by ibokan on 15/11/21.
//  Copyright © 2015年 Mac. All rights reserved.
//

#import <UIKit/UIKit.h>
@class YJMenuView;

@protocol YJMenuViewDelegate <NSObject>
@optional
-(void)menuView:(YJMenuView *)menuView clickButton:(UIButton *)button;
@end

@interface YJMenuView : UIView

/**
 *  正常按钮标题颜色
 */
@property(strong,nonatomic)UIColor *titleNomalColor;
/**
 *  选中按钮标题颜色
 */
@property(strong,nonatomic)UIColor *titleSelectColor;
/**
 *  下划线颜色
 */
@property(strong,nonatomic)UIColor *lineColor;

@property(nonatomic,weak)id<YJMenuViewDelegate>delegate;
/**
 *  创建菜单栏
 *
 *  @param frame 位置大小
 *  @param arr   菜单栏上的标题数组
 *
 *  @return 创建好的菜单栏
 */
+ (instancetype)menuWithFrame:(CGRect)frame titles:(NSArray *)titles;

@end
